// 登录接口


$('.login').click(function(){
    $.post("goodsAndShoppingCart/login.php",`username=${$('.username').val()}&userpass=${$('.userpass').val()}` ,function (restext) {
        console.log(restext);
        if(restext.trim()=="success"){
            $('.tip').html('登陆成功')
            location.href = "index.html"
        }else{
            $('.tip').html('密码错误')
        }  
    });
})

